<?php # echo '<pre>'; print_r($arrRaca); exit;      ?>
<fieldset>
    <table width="98%" border="0" cellspacing="0" cellpadding="2">
        <thead>
        <th colspan="3">
            <b>INFORMAÇÕES BÁSICAS</b>
        </th>
        <th>
            <button id="addHiv" >/</button>
            <button id="addHiv" >+</button>
        </th>
        </thead>
        <tr>
            <td colspan="2">
                <?php echo $this->Form->input('NM_PAC', array('type' => 'text', 'label' => 'Nome', 'id' => 'NM_PAC', 'class' => 'campoAlfa required', 'size' => "30", 'maxlength' => "120")); ?>
            </td>
            <td width="25%">
                <?php echo $this->Form->input('NUM_CPF_PAC', array('type' => 'text', 'label' => 'CPF', 'id' => 'NUM_CPF_PAC', 'class' => 'campoCPF required', 'size' => "20", 'maxlength' => "14", 'readonly' => $bloquear)); ?>
            </td>
            <td width="25%">
                <?php echo $this->Form->input('SEXO', array('type' => 'select', 'label' => 'Sexo', 'id' => 'SEXO', 'options' => array('' => 'Selecione um item', 'M' => 'Masculino', 'F' => 'Feminino', 'N' => 'Não Informado',))); ?>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <?php echo $this->Form->input('NM_MAE', array('type' => 'text', 'label' => 'Nome da Mãe', 'id' => 'NM_MAE', 'class' => 'campoAlfa', 'size' => "30", 'maxlength' => "120")); ?>
            </td>
            <td>
                <?php echo $this->Form->input('RACA', array('type' => 'select', 'label' => 'Raça', 'id' => 'RACA', 'options' => $arrRaca)); ?>
            </td>
            <td>
                <?php echo $this->Form->input('CO_ETNIA', array('type' => 'select', 'label' => 'Etnia', 'id' => 'CO_ETNIA', 'options' => $arrEtnia)); ?>
            </td>            
        </tr>
        <tr>
            <td>
                <?php echo $this->Form->input('DT_NASC', array('type' => 'text', 'label' => 'Nascimento', 'id' => 'DT_NASC', 'class' => 'campoDATE', 'maxlength' => "14", 'readonly' => $bloquear)); ?>
            </td>
            <td>
                <?php echo $this->Form->input('CD_CID_NAT', array('type' => 'text', 'label' => 'Cidade Nascimento', 'id' => 'CD_CID_NAT', 'class' => 'campoDATE', 'maxlength' => "14", 'readonly' => $bloquear)); ?>
            </td>
            <td>
                <?php echo $this->Form->input('CD_UF', array('type' => 'select', 'label' => 'UF', 'id' => 'CD_UF', 'options' => $arrUf)); ?>
            </td>
            <td>
                <?php echo $this->Form->input('PAIS', array('type' => 'text', 'label' => 'País', 'id' => 'PAIS', 'options' => array('' => 'Selecione um item', '1' => 'Brasil'))); ?>
            </td>            
        </tr>
        <tr>
            <td colspan="2">
                <?php echo $this->Form->input('EMAIL', array('type' => 'email', 'label' => 'Email principal', 'id' => 'EMAIL', 'class' => 'campoEmail', 'size' => "30", 'maxlength' => "60")); ?>
            </td>
            <td colspan="2">
                <?php echo $this->Form->input('E_MAIL', array('type' => 'email', 'label' => 'Email secundario', 'id' => 'E_MAIL', 'class' => 'campoEmail', 'size' => "30", 'maxlength' => "60")); ?>
            </td>
        </tr>
        <tr>
            <td colspan="3">
                <?php echo $this->element('telefone/cadastroFone'); ?>
            </td>
            <td >
                <div class="box100 centro" style="display: table-caption;">
                    <?php
                    $usuarioRequest = $this->request->data('Usuario');
                    if (!empty($usuarioRequest['IM_FOTO'])) :
                        echo $this->Siscel->foto($usuarioRequest['IM_FOTO']);
                    else:
                        echo $this->Html->image('/img/perfil.jpg', array('width' => '100', 'heigth' => '133', 'label' => null));
                    endif;
                    ?>
                </div>
                <div class="box100 centro" style="display: block;">
                    <?php echo $this->Form->input('fotoUsuario', array('type' => 'file', 'size' => '0', 'style' => 'width: 100px;', 'label' => '')); ?>
                </div>
            </td>
        </tr>

    </table>

    <table width="98%" border="0" cellspacing="0" cellpadding="2">
        <thead>
        <th colspan="3">
            <b>INFORMAÇÕES HIV</b>
        </th>
        <th>
            <button id="addHiv" >+</button>
        </th>
        </thead>
        <tbody>
            <tr>
                <td colspan="3">Sem registros</td>
                <td></td>
            </tr>
        <tbody>
    </table>

    <table width="98%" border="0" cellspacing="0" cellpadding="2">        
        <thead>
        <th colspan="3">
            <b>INFORMAÇÕES COMPLEMENTARES</b>
        </th>
        <th>
            <button id="addComplementar" >+</button>
        </th>
        </thead>
        <tbody>
            <tr>
                <td colspan="3">Sem registros</td>
                <td></td>
            </tr>
        <tbody>
    </table>

    <table width="98%" border="0" cellspacing="0" cellpadding="2">        
        <thead>
        <th colspan="3">
            <b>RESPONSÁVEL</b>
        </th>
        <th>
            <button id="addResponsavel" >+</button>
        </th>
        </thead>
        <tbody>
            <tr>
                <td colspan="3">Sem registros</td>
                <td></td>
            </tr>
        <tbody>
    </table>

    <table width="98%" border="0" cellspacing="0" cellpadding="2">        
        <thead>
        <th colspan="3">
            <b>SITUAÇÃO</b>
        </th>
        <th>
            <button id="addSituacao" >+</button>
        </th>
        </thead>
        <tbody>
            <tr>
                <td colspan="3">Sem registros</td>
                <td></td>
            </tr>
        <tbody>
    </table>
    <?php //  $this->Js->submit('Salvar', array('before' =>$this->Js->get('#aguardarAjax')->effect('fadeIn'), 'success'=>$this->Js->get('#aguardarAjax')->effect('fadeOut'),'update' => '#dialog-form','action' =>'cadastro'     )) ?>
</fieldset>
<div class="submit"><input type="submit" value="Enviar"></div>